package com.journey.org.ui.home

import com.journey.org.ui.home.beauty.BeautyGirlFragment
import com.journey.org.ui.home.news.NewsFragment
import com.journey.org.ui.test.ContinuousCallFragment
import com.mvvmhabit.org.base.MultiItemViewModel
import com.mvvmhabit.org.binding.command.BindingAction
import com.mvvmhabit.org.binding.command.BindingCommand

/**
 * @Date: 2020/11/17 15:32
 * @Author:小妖
 * @Description: RecycleView 的item
 */
class HomeHeaderItemViewModel(vm: HomeViewModel) : MultiItemViewModel<HomeViewModel>(vm) {

    val onEnterGirlCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {

        }
    })

    val onEnterAndroidCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {

        }
    })

    val onEnterNewsCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {
            viewModel.startContainerActivity(NewsFragment::class.qualifiedName, null)
        }
    })

    // 今日VIP视频列表
    val onEnterVIPVideoCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {
            viewModel.startContainerActivity(ContinuousCallFragment::class.qualifiedName, null)
        }
    })

    val onEnterVideoCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {

        }
    })

    val onEnterImageCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {
            viewModel.startContainerActivity(BeautyGirlFragment::class.qualifiedName, null)
        }
    })
}